package org.example.pojo.select;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.example.pojo.DStaff;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@Schema(name = "人员DStaffSelect" ,description = "查询人员信息对象")
public class DStaffSelect {
    @Schema(description = "人员同步Id")
    private String staffTepId;

    @Schema(description = "人员工号")
    private String staffId;

    @Schema(description = "人员姓名")
    private String staffName;

    @Schema(description = "人员地址")
    private String staffAddress;

    @Schema(description = "人员年龄")
    private Integer staffAge;

    @Schema(description = "人员部门")
    private String staffGroup;

    @Schema(description = "人员性别")
    private String staffSex;

    @Schema(description = "人员电话")
    private String staffPhoneNumber;

    @Schema(description = "人员所在房间号")
    private String apartmentId;

    @Schema(description = "人员所在楼层")
    private String buildingId;

    @Schema(description = "人员当前状态（未启用）")
    private Integer staffStatus;

    @Schema(description = "人员是否离职")
    private String empStatus;

    @Schema(description = "入住时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private String checkInDate;

    @Schema(description = "是否被删除")
    private Integer isDeleted;

    @Schema(description = "人员组")
    private DStaff[] staffs;

    //是否外宿
    @Schema(description = "是否外宿")
    private Integer outApartment;

    @Schema(description = "当前页")
    private Integer currentPage;

    @Schema(description = "总页数")
    private Integer pageSize;
}
